package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.AttendPunchCalibrationAddDTO;
import org.jsola.hr.dto.AttendPunchCalibrationUpdateDTO;
import org.jsola.hr.query.AttendPunchCalibrationQuery;
import org.jsola.hr.vo.AttendPunchCalibrationListVO;
import org.jsola.hr.vo.AttendPunchCalibrationVO;

import java.util.List;

/**
 * 考勤打卡校准记录表
 *
 * @author zhr
 */
@Api(tags = "hr-考勤打卡校准记录表")
public interface IAttendPunchCalibrationControllerAPI {

    /**
     * 新增考勤打卡校准记录表
     * @param attendPunchCalibrationAddDTO 考勤打卡校准记录表新增实体
     * @return 考勤打卡校准记录表展示对象
     */
    @ApiOperation(value = "新增考勤打卡校准记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationAddDTO", dataType = "AttendPunchCalibrationAddDTO", value = "新增考勤打卡校准记录表", paramType = "body")
    })
    Result<AttendPunchCalibrationVO> save(AttendPunchCalibrationAddDTO attendPunchCalibrationAddDTO);


    /**
     * 修改考勤打卡校准记录表
     * @param attendPunchCalibrationUpdateDTO 考勤打卡校准记录表
     * @return 更新数量
     */
    @ApiOperation(value = "修改考勤打卡校准记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationUpdateDTO", dataType = "AttendPunchCalibrationUpdateDTO", value = "修改考勤打卡校准记录表", paramType = "body")
    })
    Result<Integer> update(AttendPunchCalibrationUpdateDTO attendPunchCalibrationUpdateDTO);




    /**
     * 删除单个考勤打卡校准记录表，彻底删除
     * @param attendPunchCalibrationId 考勤打卡校准记录表id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个考勤打卡校准记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationId", dataType = "String", value = "考勤打卡校准记录表id", paramType = "path")
    })
    Result<Integer> delete(String attendPunchCalibrationId);


    /**
     * 批量删除考勤打卡校准记录表，彻底删除
     * @param attendPunchCalibrationIds 考勤打卡校准记录表id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除考勤打卡校准记录表，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationIds", dataType = "String[]", value = "考勤打卡校准记录表id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] attendPunchCalibrationIds);


    /**
     * 根据考勤打卡校准记录表id查询考勤打卡校准记录表详情
     * @param attendPunchCalibrationId 考勤打卡校准记录表id
     * @return 考勤打卡校准记录表详情
     */
    @ApiOperation(value="根据考勤打卡校准记录表id查询考勤打卡校准记录表详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationId", dataType = "String", value = "考勤打卡校准记录表id", paramType = "path")
    })
    Result<AttendPunchCalibrationVO> findById(String attendPunchCalibrationId);


    /**
     * 查询考勤打卡校准记录表
     * @param attendPunchCalibrationQuery 考勤打卡校准记录表查询参数
     * @return page
     */
    @ApiOperation(value="查询考勤打卡校准记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationQuery", dataType = "AttendPunchCalibrationQuery", value = "考勤打卡校准记录表查询参数", paramType = "query")
    })
    Result<List<AttendPunchCalibrationListVO>> listAll(AttendPunchCalibrationQuery attendPunchCalibrationQuery);


     /**
     * 分页查询考勤打卡校准记录表
     * @param attendPunchCalibrationQuery 考勤打卡校准记录表查询参数
     * @return page
     */
    @ApiOperation(value="分页查询考勤打卡校准记录表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "attendPunchCalibrationQuery", dataType = "AttendPunchCalibrationQuery", value = "考勤打卡校准记录表查询参数", paramType = "query")
    })
    Result<Page<AttendPunchCalibrationListVO>> page(AttendPunchCalibrationQuery attendPunchCalibrationQuery);


}

